<?php
namespace app\admin\validate;

use think\Validate;
class BookValidate extends Validate{
    protected $rule = [
        'book_name' => 'require',
        'book_introduction' =>'require',
    ];
    protected $message = [
        'book_name.require' => '书籍名称不能为空',
        'book_introduction.require' => '书籍简介不能为空',
    ];
}